// pages/head/head.js
Page({
  data:{
      headPic: [
            'pic1',
            'pic2',
            'pic3',
            'pic1',
            'pic2',
            'pic3',
            'pic1',
            'pic2',
            'pic3',
            'pic1',
            'pic2',
            'pic3',
        ],
  },

  allImage:function(){
      wx.chooseImage({
        count: 1, 
        sizeType: ['original'], 
        sourceType: ['album'], 
        success: function (res) {
          var tempFilePaths1 = res.tempFilePaths
        }
      })
  },
  camera:function(){
      wx.chooseImage({
        count: 1, 
        sizeType: ['original'], 
        sourceType: ['camera'], 
        success: function (res) {
          var tempFilePaths2 = res.tempFilePaths
        }
      })
  },

  onLoad:function(options){
    // 页面初始化 options为页面跳转所带来的参数
  },
  onReady:function(){
    // 页面渲染完成
  },
  onShow:function(){
    // 页面显示
  },
  onHide:function(){
    // 页面隐藏
  },
  onUnload:function(){
    // 页面关闭
  }
})